/*
    * Copyright (c) 2024 Hunan OpenValley Digital Industry Development Co., Ltd.
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    *     http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
 */

#ifndef I_FILE_SHARE_CALLBACK_H
#define I_FILE_SHARE_CALLBACK_H

#include <vector>
#include <string>

#include "iremote_broker.h"
#include "file_share_common.h"

namespace OHOS {
namespace FileShare {
class IFileShareCallback : public IRemoteBroker {
public:
    virtual int32_t OnSendEvent(SendState state, SendInfo &info) = 0;
    virtual int32_t OnShareStatusEvent(bool shareStatus) = 0;

    enum {
        ON_SEND_EVENT = 0,
        ON_SHARE_STATUS_EVENT = 1,
    };

    DECLARE_INTERFACE_DESCRIPTOR(u"ohos.distributeddatamgr.filesharecallback");
};

class SendFileCallback {
public:
    virtual ~SendFileCallback()
    {
    }
    virtual void OnSending(SendState state, SendInfo &info) = 0;
};

class ShareStatusCallback {
public:
    virtual ~ShareStatusCallback()
    {
    }
    virtual void OnShareStatus(bool shareStatus) = 0;
};


} // namespace FileShare
} // namespace OHOS

#endif // I_FILE_SHARE_CALLBACK_H